package cn.edu.scau.cmi.xuxingao.spring.client;

import org.springframework.context.ApplicationContext;

import cn.edu.scau.cmi.xuxingao.spring.domain.Student;
import cn.edu.scau.cmi.xuxingao.spring.util.ApplicationContextUtil;


public class ApplicationContextClient {
	public static void main(String[] args) {
		ApplicationContext applicationContext=ApplicationContextUtil.getApplicationContext();
		Student zhangsan=(Student)applicationContext.getBean("zhangsan");
		System.out.println(zhangsan.getName() + "的毕业设计指导导师是：" + zhangsan.getTutor().getName());
	}
}
